package com.my.study.springframework.bean.factory;

import com.my.study.springframework.bean.BeansException;

/**
 * 实现此接口，既能感知到所属的 BeanFactory
 *
 * @author: yidujun
 * @create: 2021/07/08 16:23
 */
public interface BeanFactoryAware extends Aware {

    /**
     * 可以感知BeanFactory实例
     *
     * @param beanFactory
     * @throws BeansException
     */
    void setBeanFactory(BeanFactory beanFactory) throws BeansException;
}
